import http from "./http";
import qs from "qs";
import axios from 'axios'
export default {

  confirmTrans(params) {
    return http.post("/member/trans/sale/confirmTrans?"+qs.stringify(params),params);
  },

  //个人信息
  usersInfo(params) {
    return http.get("/member/users/info",params);
  },
  //获取会员余额接口
  balance(params) {
    return http.get("/member/users/balance",params);
  },
  //本月暱稱可修改次數
  nickTimes(params) {
    return http.get("/member/users/nickname/update-available",params);
  },
  // 變更暱稱
  updateNickname(params) {
    return http.put("/member/users/nickname",params);
  },
  // 更改头像
  upDateHeadImg(params){
    return http.post("/member/images?"+qs.stringify(params),params,{
  	Headers:{
  		"Content-Type": "multipart/form-data"
  	}
    })
  }
};
